package com.software_engineering.build.A1_4;//Source file: D:\\Projects\\IDEA(java)\\basic\\demo1\\src\\com\\software_engineering\\build\\A1_4\\OrderDetail.java


public class OrderDetail {
    private Integer quantity;
    public Order theOrder;
    public Product theProduct;

    /**
     * @roseuid 653270A203BD
     */
    public OrderDetail()
    {

    }

    /**
     * @return Double
     * @roseuid 6526714D03E3
     */
    public Double calculateSubTotal()
    {
        return theProduct.getPriceForQuantity(this.quantity);
    }

    /**
     * @return Double
     * @roseuid 6526715903E7
     */
    public Double calculateWeight()
    {
        return quantity * theProduct.getWeight();
    }
}
